/**
 * @(#)com.pattern.p_02_observer.order.Accountant
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_02_observer.order;

import com.pattern.util.Log;

/**
 * 财务
 * @author fusf
 * @version 1.0  2016/11/3
 */
public class Cashier extends  JobStation {
    private String accountState;
    private Customer customer;

     public Cashier(Customer customer){
        this.customer = customer;
    }


    @Override
    public void update() {
        accountState = customer.getCustomState();
        Log.info("收纳收到订单"+ accountState);
    }
}
